﻿using System;

namespace RayDen.SceneLab.Core
{
    public interface ICommand
    {
        string Name { get; set; }
        string Description { get; set; }
        void SetParams(params object[] parameters);
        void Run();
    }

    public class Command : ICommand
    {
        public string Name { get; set; }
        public string Description { get; set; }

        public Action Action { get; set; }

        public Func<bool> Enabled { get; set; }

        public void SetParams(params object[] parameters)
        {
            
        }

        public void Run()
        {
            Action();
        }
    }
}
